<template>
  <h1>User</h1>
  <router-link to="/">首页</router-link>
</template>
<script setup>
import { useRoute } from "vue-router";
const route = useRoute();
console.log(route);
</script>
<style lang="scss" scoped>
a {
  display: block;
  color: mediumpurple;
  font-size: 20px;
  font-weight: bold;
  line-height: 40px;
}
</style>